﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000E3 RID: 227
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BasicModuleSync : IMessage<BasicModuleSync>, IMessage, IEquatable<BasicModuleSync>, IDeepCloneable<BasicModuleSync>, IBufferMessage
	{
		// Token: 0x17000307 RID: 775
		// (get) Token: 0x06000A63 RID: 2659 RVA: 0x0001ED10 File Offset: 0x0001CF10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BasicModuleSync> Parser
		{
			get
			{
				return BasicModuleSync._parser;
			}
		}

		// Token: 0x17000308 RID: 776
		// (get) Token: 0x06000A64 RID: 2660 RVA: 0x0001ED17 File Offset: 0x0001CF17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BasicModuleSyncReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000309 RID: 777
		// (get) Token: 0x06000A65 RID: 2661 RVA: 0x0001ED29 File Offset: 0x0001CF29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BasicModuleSync.Descriptor;
			}
		}

		// Token: 0x06000A66 RID: 2662 RVA: 0x0001ED30 File Offset: 0x0001CF30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BasicModuleSync()
		{
		}

		// Token: 0x06000A67 RID: 2663 RVA: 0x0001ED38 File Offset: 0x0001CF38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BasicModuleSync(BasicModuleSync other) : this()
		{
			this.stamina_ = other.stamina_;
			this.weekCocoonFinishedCount_ = other.weekCocoonFinishedCount_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000A68 RID: 2664 RVA: 0x0001ED69 File Offset: 0x0001CF69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BasicModuleSync Clone()
		{
			return new BasicModuleSync(this);
		}

		// Token: 0x1700030A RID: 778
		// (get) Token: 0x06000A69 RID: 2665 RVA: 0x0001ED71 File Offset: 0x0001CF71
		// (set) Token: 0x06000A6A RID: 2666 RVA: 0x0001ED79 File Offset: 0x0001CF79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Stamina
		{
			get
			{
				return this.stamina_;
			}
			set
			{
				this.stamina_ = value;
			}
		}

		// Token: 0x1700030B RID: 779
		// (get) Token: 0x06000A6B RID: 2667 RVA: 0x0001ED82 File Offset: 0x0001CF82
		// (set) Token: 0x06000A6C RID: 2668 RVA: 0x0001ED8A File Offset: 0x0001CF8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WeekCocoonFinishedCount
		{
			get
			{
				return this.weekCocoonFinishedCount_;
			}
			set
			{
				this.weekCocoonFinishedCount_ = value;
			}
		}

		// Token: 0x06000A6D RID: 2669 RVA: 0x0001ED93 File Offset: 0x0001CF93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BasicModuleSync);
		}

		// Token: 0x06000A6E RID: 2670 RVA: 0x0001EDA1 File Offset: 0x0001CFA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BasicModuleSync other)
		{
			return other != null && (other == this || (this.Stamina == other.Stamina && this.WeekCocoonFinishedCount == other.WeekCocoonFinishedCount && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000A6F RID: 2671 RVA: 0x0001EDE0 File Offset: 0x0001CFE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Stamina != 0U)
			{
				num ^= this.Stamina.GetHashCode();
			}
			if (this.WeekCocoonFinishedCount != 0U)
			{
				num ^= this.WeekCocoonFinishedCount.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000A70 RID: 2672 RVA: 0x0001EE38 File Offset: 0x0001D038
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000A71 RID: 2673 RVA: 0x0001EE40 File Offset: 0x0001D040
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000A72 RID: 2674 RVA: 0x0001EE4C File Offset: 0x0001D04C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Stamina != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Stamina);
			}
			if (this.WeekCocoonFinishedCount != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.WeekCocoonFinishedCount);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000A73 RID: 2675 RVA: 0x0001EEA8 File Offset: 0x0001D0A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Stamina != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Stamina);
			}
			if (this.WeekCocoonFinishedCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WeekCocoonFinishedCount);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000A74 RID: 2676 RVA: 0x0001EF00 File Offset: 0x0001D100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BasicModuleSync other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Stamina != 0U)
			{
				this.Stamina = other.Stamina;
			}
			if (other.WeekCocoonFinishedCount != 0U)
			{
				this.WeekCocoonFinishedCount = other.WeekCocoonFinishedCount;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000A75 RID: 2677 RVA: 0x0001EF50 File Offset: 0x0001D150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000A76 RID: 2678 RVA: 0x0001EF5C File Offset: 0x0001D15C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.WeekCocoonFinishedCount = input.ReadUInt32();
					}
				}
				else
				{
					this.Stamina = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400042F RID: 1071
		private static readonly MessageParser<BasicModuleSync> _parser = new MessageParser<BasicModuleSync>(() => new BasicModuleSync());

		// Token: 0x04000430 RID: 1072
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000431 RID: 1073
		public const int StaminaFieldNumber = 9;

		// Token: 0x04000432 RID: 1074
		private uint stamina_;

		// Token: 0x04000433 RID: 1075
		public const int WeekCocoonFinishedCountFieldNumber = 10;

		// Token: 0x04000434 RID: 1076
		private uint weekCocoonFinishedCount_;
	}
}
